﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zor_IBll;

namespace Zor_Bll
{
    public class BaseBll<T> : InterfaceBaseBll<T> where T : class
    {
        protected InterfaceBaseBll<T> CurrentRepository { get; set; }

        public BaseBll(InterfaceBaseBll<T> currentRepository) 
        { 
            CurrentRepository = currentRepository; 
        }

        public T Add(T entity) 
        {
            return CurrentRepository.Add(entity);
        }

        public bool Delete(T entity) 
        { 
            return CurrentRepository.Delete(entity); 
        }
    }
}
